package com.yt.common;

/**
 * 常量定义
 * @author 杨涛
 * @version v1.0
 * @since 2022/03/30
 */
public class Constants {
    //登录超时时间 30分钟
    public static final Long loginExpire=30L;
    //锁的超时时间
    public static final Long lockExpire=60L;

    //以下用于缓存前缀
    // token
    public static final String tokenPrefix="token:";
    //锁
    public static final String lockPrefix="lock:";
    //author
    public static final String authorPrefix="author:";
    //novel
    public static final String novelPrefix="novel:";

}
